import time
from airtest.report.report import simple_report

from V1.air import air_directory


# 定义生成测试报告的方法
def generate_report():
    __author__ = "yalin_S"
    __title__ = "自助下单UI自动化测试"
    dir = air_directory.dir
    simple_report(
        __file__,
        logpath=False,
        logfile=dir + f"log\\log.txt",
        output=dir + "report\\log.html",
    )
